#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtGui>
#include <QObject>
#include "encoder.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

protected:
    Encoder* encoder;
    QImage img;

private slots:
    void createQrCode();
    void loadQrImage(QImage img);
    void saveImage();
};

#endif // MAINWINDOW_H
